package com.libbase.mvp.presenter;

import com.chan.net.Result;
import com.libbase.bean.NyqfBean;
import com.base.kotlin.IModel;
import com.base.kotlin.mvp.IView;

import io.reactivex.Flowable;

public interface NewContract {

    interface Model extends IModel<NyqfContract.NyqfMvpApi> {
        Flowable<Result<NyqfBean>> getNews(String nav);
    }

    interface View extends IView {
        void onSuccessNews(Result<NyqfBean> result);
    }

    interface Presenter {
        void getNews(String nav);
    }
}
